package net.oschina.kjtang.qywx.api.entity.message;

import java.io.Serializable;

/**
 * Created by kjtang on 2017/12/6.
 * 文本类消息
 */
public class TextMessage implements Serializable {

     private String touser;
     private String toparty;
     private String totag;
     private String msgtype;
     private Integer agentid;
     private Text text;
     private Integer safe;

     public static Text createText(String content){
         return new Text(content);
     }

    static class Text {

         private String content;

         public Text(String content){
             this.content = content;
         }

         public String getContent() {
             return content;
         }

         public void setContent(String content) {
             this.content = content;
         }
     }

    public String getTouser() {
        return touser;
    }

    public void setTouser(String touser) {
        this.touser = touser;
    }

    public String getToparty() {
        return toparty;
    }

    public void setToparty(String toparty) {
        this.toparty = toparty;
    }

    public String getTotag() {
        return totag;
    }

    public void setTotag(String totag) {
        this.totag = totag;
    }

    public String getMsgtype() {
        return msgtype;
    }

    public void setMsgtype(String msgtype) {
        this.msgtype = msgtype;
    }

    public Integer getAgentid() {
        return agentid;
    }

    public void setAgentid(Integer agentid) {
        this.agentid = agentid;
    }

    public Text getText() {
        return text;
    }

    public void setText(Text text) {
        this.text = text;
    }

    public Integer getSafe() {
        return safe;
    }

    public void setSafe(Integer safe) {
        this.safe = safe;
    }
}
